package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.qijian.maindata.domain.query.ProcessOrderDelayQuery;
import com.qijian.maindata.domain.vo.ProcessOrderDelayVO;
import com.qijian.maindata.domain.vo.ProjectDelayDeptRateVo;
import com.qijian.maindata.domain.vo.ProjectDelayDeptTotalVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ProjectDelayMapper {

    /***
     * 获取延期车间-工单数据
     * @param startTime
     * @param endTime
     * @return
     */
    List<ProjectDelayDeptTotalVo> getProjectDelayOrderTotal(@Param("startTime")Date startTime,@Param("endTime") Date endTime);


    /***
     * 获取延期车间-交付率数据
     * @param startTime
     * @param endTime
     * @return
     */
    List<ProjectDelayDeptRateVo> getProjectDelayDeliveryRate(@Param("startTime")Date startTime,@Param("endTime") Date endTime);

    List<ProcessOrderDelayVO> ListDelayVoForExcel(@Param(Constants.WRAPPER) Wrapper<ProcessOrderDelayQuery> queryWrapper);

}
